import request from '@/utils/request'
// 课程模块

/* 
  在线听课人数
*/
export const getOnlinePeople = params => {
  return request({
    method:'GET',
    url:'course/courseOnline',
    params
  })
}

/* 
  热门学科排名
*/
export const getSubjectStat = params => {
  return request({
    method:'GET',
    url:'courseSubject/statistics',
    params
  })
}

export const getsubjectRank = params => {
  return request({
    method:'GET',
    url:'courseSubject/subjectRank',
    params
  })
}

export const getHotSubject = params => {
  return request({
    method:'GET',
    url: 'course/courseUser',
    params
  })
}

export const getFrequencyDistribution = params => {
  return request({
    method: 'GET',
    url: 'course/courseFrequencyDistribution',
    params
  })
}

export const getsubjectStat = params => {
  return request({
    method: 'GET',
    url: 'courseSubject/statistics',
    params
  })
}